package com.museum.controller.api.admin;

import com.alibaba.fastjson.JSONObject;
import com.museum.base.BaseResponse;
import com.museum.entity.DTO.user.UserAdd;
import com.museum.entity.DTO.user.UserLoginByName;
import com.museum.entity.DTO.user.UserQuery;
import com.museum.entity.DTO.user.UserRegister;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;


@Api(tags = "Supper-用户管理")
public interface AdminUserAPI {
    /**
     * 查询所有用户
     *
     * @return
     */
    @ApiOperation("条件分页查询")
    @PostMapping("pageUserCondition/{current}/{limit}")
    BaseResponse<JSONObject> getAllUser(@PathVariable long current, @PathVariable long limit,
                                        @RequestBody(required = false) UserQuery userQuery, HttpServletRequest request);



}
